<%@page pageEncoding="utf-8" %>
<script type="text/javascript">
	$("#saveAlbum").linkbutton({    
    	iconCls: 'icon-add',
    	onClick:function(){
    		$('#addAlbum-form').form('submit',{    
			    url:"${pageContext.request.contextPath}/album/addAlbum",    
			    onSubmit: function(){    
			        return $('#addAlbum-form').form('validate');
			    },    
			    success:function(data){
			        $("#addlbm").dialog("close");
			    	$.messager.show({
								title:"提示",
								msg:"上传成功!"
							});    
			        $("#abtt").treegrid("reload");    
			    }    
			});    
    		
    	}   
	}); 
	$("#cancelAlbum").linkbutton({
			iconCls: 'icon-back',
			onClick:function(){
				$("#addlbm").dialog("close");
			}
	})
	
</script>
<form id="addAlbum-form" method="post" enctype="multipart/form-data">   
  	选择上传文件图片：<input class="easyui-filebox"  data-options="buttonText:'选择文件',required:true" name="file"/><br/>
  	标题：<input class="easyui-textbox"  name="title" data-options="required:true" style="width:100px"> <br/>
  	作者：<input class="easyui-textbox" name="author" ><br/>
  	播音：<input class="easyui-textbox" name="beam" ><br/>
  	上传时间：<input type= "text" class= "easyui-datebox" required ="required" name="pub_date"/> <br/>
  	描述：<textarea class="easyui-textbox" data-options="multiline:true,height:110,width:200,required:true" name="content"></textarea><br/>
   <a id="saveAlbum">确认</a>
   <a id="cancelAlbum">取消</a>
</form>  
  